package com.king.fast;

import com.king.fast.server.ServerFactory;

/**
 * @author taomk
 * @version 1.0
 * @since 14-12-17 下午9:47
 */
public class Main {

	public static void main (String [] args) {
		int port = Integer.parseInt(System.getProperty("port", "8080"));
		String appName = System.getProperty("appName", "/");
		String classPath = ClassLoader.getSystemResource("").getPath();
		String webappPath = classPath.substring(0, classPath.indexOf("target/classes/")) + "src/main/webapp";
		ServerFactory.getServer(webappPath, port, appName, 5).start();
	}
}
